package request

type RedisString struct {
	Key    string      `form:"key" binding:"required" bson:"key"`
	Value  interface{} `form:"value" binding:"required" bson:"value"`
	Expire int         `form:"expire" binding:"required" bson:"expire"`
	// mget使用
	Keys []string `form:"keys" binding:"required" bson:"keys"`
	// mset使用
	Pairs []interface{} `form:"pairs" binding:"required" bson:"pairs"`
}
type RedisHash struct {
	Key   string      `form:"key" binding:"required" bson:"key"`
	Field string      `form:"field" binding:"required" bson:"field"`
	Value interface{} `form:"value" binding:"required" bson:"value"`
	// hmget使用
	Fields []string `form:"fields" binding:"required" bson:"fields"`
	// hmset使用
	FieldMap map[string]interface{} `form:"fieldMap" binding:"required" bson:"fieldMap"`
}
type RedisDel struct {
	Key    string   `form:"key" binding:"required" bson:"key"`
	Fields []string `form:"fields" binding:"required" bson:"fields"`
}
